<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- template 模板 -->
    <div id="app">
      <!-- 自动解包 -->
      <h2>number1:{{number1}}</h2>
    </div>
    <script type="module">
      import { createApp, ref } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          // const number1 = 100;
          const number1 = ref(100);
          console.log(number1.value);
          return {
            number1,
          };
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
